<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>计划维护中选题计划管理的弹框列表界面</title>
<script type="text/javascript" src="${pageContext.request.contextPath}/model/general/datalist.js"></script> 
<script type="text/javascript">
	$(function(){
		initDataUse('commUse','${m.prefix}','${m.dsId}');
	})
</script>
</head>
<body  onresize="resizeGrid();">
	<div id="${m.prefix}_GEN_DG_PANEL">
		<div id='${m.prefix}_GEN_PARENT_PANEL' title="${m.panelTitle}" style=" overflow-x:hidden; ">
		  	<div id='${m.prefix}_GEN_BUTNS'>
		  		<table cellpadding="0" cellspacing="0" style="width: 100%;height:100%;padding-top: 10px; ">
					<tr>
						<td>
						    <div id="${m.prefix}_commDataLeft">
								<table class='tableBord' id="${m.prefix}_commUse"  style="float: left"></table>
						    </div>
						</td>
						<td align="center" style="vertical-align: top; text-align: left;">
							<!-- 查询界面按钮 -->
							<div style="vertical-align: top; text-align:right;  width: 95%; id='${m.prefix}_GEN_ID'">
								<span>
									<a class='easyui-linkbutton' href="#" onclick="_g_bquery(this)" id='${m.prefix}_dataQuery'  pre='${m.prefix}' dsid='${m.dsId}' tit='${m.panelTitle}' flagStr='0' >查询</a>
									<a class='easyui-linkbutton' href="#" onclick="_d_czFunc(this,'_GEN_DATALIST','_commUse')" id='${m.prefix}_czQuery'  pre='${m.prefix}' dsid='${m.dsId}' tit='${m.panelTitle}' flagStr='0' >重置</a>
								</span>
								<!-- 生成个性按钮 -->
							<c:if test="${fn:length(m.butnList)>0}">
									<c:forEach items="${m.butnList[0]}" var="but">
										<c:if test="${but.IS_GROUP != null}">
											<c:if test="${not empty but.IS_GROUP && but.IS_GROUP =='T'}">
												<a href="javascript:void(0)" id="mb2" plain="false"
													 menu="#${but.GROUP_ID}" class="easyui-menubutton"
													iconCls="">${but.BUTN_NAME}</a>
													<div id="${but.GROUP_ID}" style="width: 150px;">
														<c:forEach items="${m.butnList[0]}" var="butn">
															<c:if test="${butn.IS_GROUP != 'T' && not empty butn.GROUP_ID && butn.GROUP_ID !=null && butn.GROUP_ID==but.GROUP_ID}">
														   		<div onclick="${butn.SCRIPT_FUNC}" code='${butn.BUT_CODE}' right='${butn.BUT_RIGHT}'>${butn.BUTN_NAME}</div>  
															</c:if>
														</c:forEach>
													</div>
											</c:if>
										</c:if>
										<c:if test="${but.IS_GROUP !='T' && (but.GROUP_ID == null || empty but.GROUP_ID)}">
											<a class='easyui-linkbutton' onclick="${but.SCRIPT_FUNC}" iconCls='icon-key' code='${but.BUT_CODE}' id='${but.BUT_CODE}' right='${but.BUT_RIGHT}'>${but.BUTN_NAME}</a>
										</c:if>
									</c:forEach>
								</c:if>
<!--								<c:forEach items="${m.butnList[0]}" var="butn">-->
<!--									<a class='easyui-linkbutton' onclick="${butn.scriptFunc}" code='${butn.butCode}' id='${butn.butCode}' right='${butn.butRight}'>${butn.butnName}</a>-->
<!--								</c:forEach>-->
									
<!--								<div id="${m.prefix}_GEN_CONFIG" style="float: left;">-->
								<a class='easyui-linkbutton' onclick="closePanel(this)"   sflag="g" pre='${m.prefix}' dsid='${m.dsId}' >返回</a>
<!--								</div>-->
							</div>
							
						</td>
					</tr>
				</table>
		  	</div>
			
			<div id="${m.prefix}_GEN_TAB_PANEL"    style="width: 100%;height:90%;">  
				<div id="xt_name" style="margin-top:-12px;"></div>
	      		<div title="${m.panelTitle}列表">      
			        <!-- Tab1 -->
					<table  style="width: 100%;height:100%;padding-top:8px;">
						<tr  >
							<td style="padding-top: 10px;" width="100px;">
								<!-- 数据列表 -->	
								<table id="${m.prefix}_GEN_DATALIST"  realdsid="${fn:split(m.dsId,';')[0]}" style="width:auto;height:630px;"></table>
							</td>
						</tr>
					</table>
				</div>
			</div>
		</div>
<!--		<div id="mm" class="easyui-menu" style="width:120px;">-->
<!--		    <div onClick="belowWrite()" data-options="iconCls:'icon-search'">向下填充</div>-->
<!--		    <div onClick="add()" data-options="iconCls:'icon-add'">查看DS</div>-->
<!--		    <div onClick="edit()" data-options="iconCls:'icon-edit'">权限配置</div>-->
<!--		    <div onClick="del()" data-options="iconCls:'icon-remove'">打印</div>-->
<!--		    <div class="menu-sep"></div>-->
<!--		    <div onClick="reload()" data-options="iconCls:'icon-reload'">刷新</div>-->
<!--		</div>-->
		<input type="hidden" id='${m.prefix}_gen_keyValues' value='${m.keyValues}'/>
		<input type="hidden" id='${m.prefix}_gen_pk'/>
	</div>
</body>
</html>
